package com.listsorter.test;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class IntegerItem
{

   int value;

   IntegerItem(int value)
   {
      this.value = value;
   }

   public int sortOrder()
   {
      return this.value;
   }

   public int customOrder()
   {
      return this.value;
   }

   public Integer customOrder2()
   {
      return this.value;
   }

   public static List<IntegerItem> getItemList()
   {
      Random r = new Random();
      List<IntegerItem> list = new ArrayList<IntegerItem>();
      for (int i = 15; i >= 0; i--)
      {
         list.add(new IntegerItem(i * r.nextInt()));

      }
      return list;
   }
}